package com.neusoft.neumooc.dao;

import java.util.List;

import com.neusoft.core.common.exception.DAOException;
import com.neusoft.neumooc.VO.OrderVO;

public interface OrderDao {

	/**
	 * @Title: addOrder
	 * @Description: TODO 增加订单
	 * @param ordervo
	 *            订单实体
	 * @return int
	 * @throws DAOException
	 */
	public int addOrder(OrderVO orderVO) throws DAOException;

	/**
	 * @Title: getOrderNum
	 * @Description: 获得订单数量
	 * @return
	 * @throws DAOException
	 */
	public int getOrderNum(String userId) throws DAOException;

	/**
	 * @Title: getOrderList
	 * @Description: 获得订单列表
	 * @param userId
	 * @param pageIndex
	 * @param pageSize
	 * @return
	 * @throws DAOException
	 */
	public List<OrderVO> getOrderList(String userId, int pageIndex, int pageSize)
			throws DAOException;
}
